package 设计模式.第2部分.第14章_观察者模式.v1;

public class App {
	public static void main(String[] args) {

		Secretary tongzizhe = new Secretary();

		StockObserver tongshi1 = new StockObserver("魏", tongzizhe);
		StockObserver tongshi2 = new StockObserver("易", tongzizhe);

		tongzizhe.Attach(tongshi1);
		tongzizhe.Attach(tongshi2);
		
		tongzizhe.setAction("老板回来了");

		tongzizhe.Notify();

	}
}
